Training classifiers is a multi-step process that includes selecting the segmentation trainer inputs, adding features to the features tree, training the classifier, and then reviewing the training results. You can segment datasets after a classifier is trained.
The Segmentation Trainer dialog appears.
See Classifier Panel for more information about the Classifier panel.
Refer to the following instructions for information about selecting the classifier inputs, which include the classification engine, dataset(s), segmentation labels, and mask(s). See Input Panel for more information about classifier inputs.
IMPORTANT Training is always done on the image plane and all segmentation labels must be created on that plane.
The Input panel appears.
You should note that different engines will react differently to the same inputs. See Classifier Engines for information about choosing a classification engine and the settings available for each engine.
To modify the default settings, check the Advanced box and then select the required options.
If required, you can save your changes as the default settings for the engine by clicking the Save As Default button. Otherwise, your changes will be saved with the model only.
Do the following to add a dataset or datasets:
The selected dataset(s) appear in the Datasets box.
See Segmentation Labels (ROIs) for information about creating regions of interest for pixel-based training and region-based training.
Do the following to add training classes:
The selected regions of interest are added as inputs.
Do the following to add a mask:
The selected region of interest is added as an input.
Refer to the following instructions for information about choosing a working area and creating a features tree. See Features Panel for more information about working areas and adding features to the classifier.
The Features panel appears.
Refer to the topic Region-Based Training for information about the available region generators and their settings, as well as instructions for computing regions.
In pixel-based training, the dataset features extracted are the intensity value(s) of the pixel directly. See Dataset Features for more information about the dataset features.
To edit a dataset feature, right-click the feature and then choose Edit in the pop-up menu.
The Feature Presets dialog appears. Refer to the topic Editing Feature Presets for information about editing dataset presets.
To preview a dataset feature, right-click the feature preset and then choose Preview in the pop-up menu.
The Preview Trainer dialog appears. Refer to the topic Previewing Feature Presets for information about previewing the filters in a dataset feature preset.
When the classifier works on regions and not directly on the pixel level, information is extracted from regions to build the feature vector. The features extracted from the region can be different metrics used to represent the region itself. For example, the histograms of the intensities of the pixels in the given region, or to compare a given region and its surrounding, as is done with the Earth Movers Distance metric. See Region Features for more information about region features.
Region can be added to any dataset feature in the features tree. As a minimum, you can add the dataset feature Self to the inputs in the features tree when you work with region-based training.
See How to Add Dataset Features for information about adding dataset features.
To edit a region feature, right-click the feature and then choose Edit in the pop-up menu.
The Feature Presets dialog appears. Refer to the topic Editing Feature Presets for information about editing dataset presets.
To preview a region feature, right-click the feature preset and then choose Preview in the pop-up menu.
The Preview Trainer dialog appears. Refer to the topic Previewing Feature Presets for information about previewing the filters in a dataset preset.
You can train a classifier after you have added the required features.
Wait for training and classification to be completed.
A preview of the classification results appear in the current view at the end of training.
The relevance of each feature preset, on a scale of 0 to 1 and totaling one, is displayed in the features tree to help you judge whether the feature preset provides helpful information for the classification or not.
You can also threshold the results on the Result panel, as well as evaluate the proposed segmentation with the help of a confidence map. See Result Panel.
You should note that classifiers determined to be ineffective can be edited or removed from the features tree.
By default, the new classifier regions of interest, the working area regions, and the trainer confidence map will be generated and added to the Data Properties and Settings panel.
Refer to the topic Result Panel for more information about exporting your segmentation results.